import { storeToRefs } from 'pinia'
import { useRouteStore } from '@/stores'

export function useRouteHook() {
  const routeStore = useRouteStore()
  const { sideBarList, defaultActive, breadcrumbList } = storeToRefs(routeStore)

  return {
    sideBarList,
    defaultActive,
    breadcrumbList
  }
}
